package cn.neusoft.enums;

public enum TaskState
{
    FAILED(0, "失败"),
    SCHEDULED(1, "已调度"),
    ASSIGNABLE(2, "可分配"),
    ASSIGNED(3,"已分配"),
    PICKED_UP(4, "已领货"),
    FINISHED(5, "已完成");


    private final Integer code;
    private final String message;

    TaskState(Integer code, String message)
    {
        this.code = code;
        this.message = message;
    }

    public Integer getCode()
    {
        return code;
    }

    public String getMessage()
    {
        return message;
    }
}
